package cn.cdutetc.library.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户导出DTO
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(25)
public class UserExportDTO {
    
    @ExcelProperty(value = "用户ID", index = 0)
    @ColumnWidth(10)
    private Integer userId;
    
    @ExcelProperty(value = "用户名", index = 1)
    @ColumnWidth(15)
    private String username;
    
    @ExcelProperty(value = "真实姓名", index = 2)
    @ColumnWidth(15)
    private String realName;
    
    @ExcelProperty(value = "角色", index = 3)
    @ColumnWidth(15)
    private String roleDesc;
    
    @ExcelProperty(value = "联系电话", index = 4)
    @ColumnWidth(15)
    private String phone;
    
    @ExcelProperty(value = "邮箱", index = 5)
    @ColumnWidth(25)
    private String email;
    
    @ExcelProperty(value = "状态", index = 6)
    @ColumnWidth(10)
    private String statusDesc;
    
    @ExcelProperty(value = "创建时间", index = 7)
    @ColumnWidth(20)
    private LocalDateTime createTime;
}